<?php

class StaffEvent extends BaseEvent {
	private $super;

	private $attendees;


	public function getId() {
		return $this->super->getId();
	}

	public function getTitle() {
		return $this->super->getTitle();
	}

	public function getDescription() {
		return $this->super->getDescription();
	}

	public function getStartDateTime() {
		return $this->super->getStartDateTime();
	}

	public function getEndDateTime() {
		return $this->super->getEndDateTime();
	}

	public function getStartDate() {
		return $this->super->getStartDate();
	}

	public function getEndDate() {
		return $this->super->getEndDate();
	}

	public function getStartTime() {
		return $this->super->getStartTime();
	}

	public function getEndTime() {
		return $this->super->getEndTime();
	}

	public function getStaffInfo() {
		return json_decode($this->super->getDescription(), true);
	}

	public function getAttendees() {
		return $attendees;
	}

	protected function __construct() {
	}

	public static function create($id, $title, $description, $startTime, $endTime, $attendees) {
		$self = new StaffEvent();
		$self->super = BaseEvent::create($id, $title, $description, $startTime, $endTime);
		
		$self->attendees = $attendees;

		return $self;
	}

	public static function createFromMetaData($id) {
		$self = new StaffEvent();
		$self->super = BaseEvent::createFromMetaData($id);
		
		return $self;
	}
}